<%@ page language="java" pageEncoding="utf-8"%>

<%@ taglib uri="http://struts.apache.org/tags-bean" prefix="bean" %>
<%@ taglib uri="http://struts.apache.org/tags-html" prefix="html" %>
<%@ taglib uri="http://struts.apache.org/tags-logic" prefix="logic" %>
<%@ taglib uri="http://struts.apache.org/tags-tiles" prefix="tiles" %>
<p><font color="red">订单状态：未处理--订单还没有生效；已处理--订单已经生效；已发货--在途配送中；已接收--交易结束</font></p>
<br/>
<table width="100%"><tr align="center"><th width="10%">订单编号</th><th width="10%">收货人</th><th width="20%">送货地址</th><th width="15%">下单时间</th><th width="15%">最佳送达</th><th width="10%" >联系方式</th><th width="10%">总额</th><th width="10%">状态</th></tr>
       <logic:iterate id="order" name="orders" >
       <tr align="center"><td><html:link page="/seeOrderDetailByUser.do?id=${order.id}">${order.NO }</html:link></td>
           <td>${order.sendToWho }</td><td>${order.sendToPlace }</td>
           <td>${order.orderTime }</td>
           <td>${order.deadline }</td>
           <td>${order.receiverPhone }</td><td>${order.payment }</td>
           <td><logic:equal name="order" property="state" value="0"><font color="red">未处理</font></logic:equal>
               <logic:equal name="order" property="state" value="1"><font color="blue">已处理</font></logic:equal>
               <logic:equal name="order" property="state" value="2"><font color="green">已发货</font></logic:equal>
               <logic:equal name="order" property="state" value="3"><a  href="#" title="点击评价获积分"><font color="orange">已接收</font></a></logic:equal></td>
           </tr>
       </logic:iterate>
       <tr><td colspan="8"><font color="red" size="6">总的消费额：${total};总积分：${score};剩余积分:${remainScore}</font></td></tr>

</table>